package com.huang.dao;

import com.huang.pojo.User;
import org.mybatis.spring.support.SqlSessionDaoSupport;

import java.util.List;

public class UserMapperImpl2 extends SqlSessionDaoSupport implements UserMapper {
    @Override
    public List<User> select() {
        //SqlSession sqlSession = getSqlSession();
        //UserMapper mapper = sqlSession.getMapper(UserMapper.class);
        //UserMapper mapper = getSqlSession().getMapper(UserMapper.class);
        //最精简版
        return getSqlSession().getMapper(UserMapper.class).select();
    }
}
